package com.design.softwaredesign.mapper;

import com.design.softwaredesign.entity.Donation;
import com.design.softwaredesign.entity.DonationImages;
import com.design.softwaredesign.entity.DonationLog;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DonationMapper {
    DonationImages selectDonationImages(String donationId);

    void addDonationImages(DonationImages donationImages);

    void updateImages(DonationImages donationImages);

    void addDonation(Donation donation);

    List<Donation> getDonationList(String userId, String query);

    Integer deleteDonationById(String donationId);

    void deleteDonationImages(String donationId);

    DonationLog getDonationTimestamp(String donationId);

    void addDonationLog(DonationLog donationLog);
}
